﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-cn" class="login-html csstransforms csstransforms3d csstransitions" >
<head>
	<meta charset="utf-8" />
	<meta http-equiv="x-ua-compatible" content="ie=edge" />
	<meta http-equiv="cache-control" content="no-cache, must-revalidate" /> 
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="pragma" content="no-cache" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
	<meta name="author" content="chanlong" />
	<meta name="keywords" content="蜜娃娃, 早教, 缤够, 云服务" />
	<meta name="description" content="蜜娃娃云服务，专业提供早教领域，企业及机构，运营管理类，互联网产品" />
	<title>缤够旗下 蜜娃娃品牌 早教运营管理 云服务</title>
	
	<link href="/miwawa/favicon.ico" rel="icon" type="image/x-icon" />
  <link href="/miwawa/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  
	<script src="/miwawa/resources/lib/miwawa/1.0.2/js/core/css.js"></script>
  
	<link rel="stylesheet" href="/miwawa/resources/lib/bootstrap/extends/bootstrap-validator/0.5.3/css/bootstrapValidator.min.css"/>
</head>

<body class="login-body">
	<div class="login-container container">
		<div class="row">
			<div class="col-sm-6 col-sm-offset-3 form-box">
				<div class="form-top">
					<div class="form-top-left">
						<h3 class="green"><i class="login-icon ion-android-cloud-circle"></i> 蜜娃娃云服务</h3>
						<p><span class="green">H</span>ONEYKIDS <span class="green">C</span>LOUD <span class="green">S</span>ERVICE</p>
					</div>
					<div class="form-top-right">
						<i class="fa fa-key"></i>
					</div>
				</div>
				<div class="form-bottom">
					<form role="form" class="login-form" method="post" action="/miwawa/admin" onsubmit="return login()">
						<input type="hidden" name="prefix" value="miwawa_"/>
						<div class="form-group">
							<label class="sr-only" for="account">帐号</label> 
							<div class="input-group">
								<span class="input-group-addon">
									<span class="ion-ios-person-outline"></span>
								</span>
								<input type="text" name="account" placeholder="管理员帐号" class="form-username form-control" id="account" th:value="${data.account}"/>
							</div>
						</div>
						
						<div class="form-group">
							<label class="sr-only" for="password">Password</label>
							<div class="input-group">
								<span class="input-group-addon">
									<span class="ion-ios-unlocked-outline"></span>
								</span>
								<input type="password" name="password" placeholder="密码" class="form-password form-control" id="password" />
							</div>
						</div>
						
						<div th:if="${'' eq data.message}">
							<div  class="alert alert-danger hidden " >
								<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
									<i class="icon-cross"></i>
								</button>
								<span class="alert-icon"><i class="fa fa-check-circle"></i></span> <strong id="message" th:text="${data.message}"></strong>
							</div>
						</div>
						<div th:if="${not('' eq data.message)}">
							<div  class="alert alert-danger " >
								<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
									<i class="icon-cross"></i>
								</button>
								<span class="alert-icon"><i class="fa fa-check-circle"></i></span> <strong id="message" th:text="${data.message}"></strong>
							</div>
						</div>
						<button type="submit" class="btn" >
							<i class="fa fa-sign-in"></i> 管理员登录
						</button>
					</form>
				</div>
			</div>
		</div>
		
		<div class="row">
			
		</div>
	</div>

	<!-- Javascript =============================================== -->
	<script src="/miwawa/resources/lib/miwawa/1.0.2/js/jquery/jquery-1.11.3.min.js"></script>
	<script src="/miwawa/resources/lib/miwawa/1.0.2/js/jquery/form/3.51.0/js/jquery.form.js"></script>
	<script src="/miwawa/resources/lib/bootstrap/extends/bootstrap-validator/0.5.3/js/bootstrapValidator.min.js"></script>
	<script src="/miwawa/resources/lib/bootstrap/extends/bootstrap-validator/0.5.3/js/language/zh_CN.min.js"></script>
	
	<script th:inline="javascript">
	/*<![CDATA[*/
	
		function login(){
			if(jQuery("#account").val()==""){
				jQuery("#message").text("请输入用户名").parent().removeClass("hidden");
				return false;
			}else if(jQuery("#password").val()==""){
				jQuery("#message").text("请输入密码").parent().removeClass("hidden");
				return false;
			}else{
				return true;
			}
		}
	/*]]>*/
	</script>
	<!-- /Specific Page Scripts END -->
</body>
</html>
